Skip to content

fix: service.ranking must be an Integer to take effect#1409

Merged
sebthom merged 1 commit intoeclipse-lsp4e:mainfrom
FlorianKroiss:service-ranking-integer
Nov 20, 2025
Merged

fix: service.ranking must be an Integer to take effect#1409
sebthom merged 1 commit intoeclipse-lsp4e:mainfrom
FlorianKroiss:service-ranking-integer

Conversation

@FlorianKroiss
Copy link
Copy Markdown
Contributor

Unfortunately my previous fix #1363 was faulty, because service.ranking must be specified as an Integer or it won't take effect.
The unit test in #1363 couldn't detect this, because services are sorted by service.ranking descending and then load order ascending and DefaultFormatRegionsProvider is probably always loaded first in our test setup. My local testing also did not reveal this, because the load order just happened to be correct 😞

To make sure this fix is now correct, I debugged the lookup in ServiceRegistry.getServiceReference(BundleContextImpl, String) to make sure the service.ranking of DefaultFormatRegionsProvider is correctly set to 1

@rubenporras
Copy link
Copy Markdown
Contributor

bump version number?

@FlorianKroiss FlorianKroiss force-pushed the service-ranking-integer branch from 92cc1dd to 0f625a9 Compare November 20, 2025 10:45
@sebthom sebthom merged commit 1dc6959 into eclipse-lsp4e:main Nov 20, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants